package com.kt.app.ui.components


import androidx.compose.runtime.Composable
import androidx.compose.runtime.compositionLocalOf
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue

data class User(val name:String)

val localAtiveUser = compositionLocalOf<User> {
    error("No User")
}
@Composable
fun CompositionLocalSample() {
}

@Preview
@Composable
fun CompositionLocalSamplePreview() {
    CompositionLocalSample()
}

